<?php
class bobot extends CI_Controller{
	
	function index(){
		$data['judul'] = 'Masukkan Bobot';
		$data['notif'] = '';
		$this->load->view('bobot_v', $data);
	}
	
	function simpanb(){
		$this->load->model('bobot_m');
		$this->bobot_m->simpan_bobot();
		$data['judul'] = 'Masukkan Bobot';
		$data['notif'] = 'berhasil disimpan';
		$this->load->view('bobot_v', $data);
	}
	
	function lihatb(){
		$this->load->model('bobot_m');
		$data['hasil'] = $this->bobot_m->ambil();
		$this->load->view('bobot_vl', $data);
	}
}
?>